using UnityEngine;
using UnityEngine.UI;
using TEngine;

namespace GameLogic
{
    [Window(UILayer.UI)]
    class ObjectPoolWindow : UIWindow
    {
        #region 脚本工具生成的代码
        private Button m_btnCreateObj;
        private Button m_btnUnspawnObj;
        protected override void ScriptGenerator()
        {
            m_btnCreateObj = FindChildComponent<Button>("m_btnCreateObj");
            m_btnUnspawnObj = FindChildComponent<Button>("m_btnUnspawnObj");
            m_btnCreateObj.onClick.AddListener(OnClickCreateObjBtn);
            m_btnUnspawnObj.onClick.AddListener(OnClickUnspawnObjBtn);
        }
        #endregion

        #region 事件
        private void OnClickCreateObjBtn()
        {
            GameEvent.Send("添加对象");
        }
        private void OnClickUnspawnObjBtn()
        {
            GameEvent.Send("回收对象");
        }
        #endregion

    }
}
